package com.swhysc.information.service;


import com.swhysc.information.entity.InformationDataTableEx;
import com.swhysc.information.vo.InformationDataTableExVo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

public interface IInformationDataTableExService {
    List getList(String queryParam, String dataSourceIds, Integer page, Integer size);

    Long getCount(String queryParam, String dataSourceIds);

    Boolean create(InformationDataTableEx informationDataTable);

    Boolean update(InformationDataTableEx informationDataTable);

    Map<String, Object> delete(String ids);


    List getDirList(String dirId, Integer page, Integer size, String name);

    Long getDirCount(String dirId, String name);

    InformationDataTableExVo getOne(String id);

    Map<String, Object> importData(HttpServletRequest request, HttpServletResponse response, MultipartFile file) throws Exception;

    /**
     * 导出excel
     * @param id 数据表id
     * @param response 响应体
     */
    void export(String id, HttpServletResponse response);

    /**
     * 批量导出
     * @param id id
     * @param isAll 是否全部导出 1-是 0-否
     * @param response
     */
    void AllExport(String id, String isAll, HttpServletResponse response);


    Map moveTable(String id, String tagId, String moveType);
}
